/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.oszc.bbhmlibrary.wrapper;

import ohos.data.rdb.ValuesBucket;

public class ContentValues {
    private ValuesBucket valuesBucket = new ValuesBucket();
    public void put(String key, String value) {
        valuesBucket.putString(key, value);
    }

    public void putAll(ContentValues other) {
        valuesBucket.putValues(other.valuesBucket);
    }

    public void put(String key, Byte value) {
        valuesBucket.putByte(key, value);
    }

    public void put(String key, Short value) {
        valuesBucket.putShort(key, value);
    }

    public void put(String key, Integer value) {
        valuesBucket.putInteger(key, value);
    }

    public void put(String key, Long value) {
        valuesBucket.putLong(key, value);
    }

    public void put(String key, Float value) {
        valuesBucket.putFloat(key, value);
    }

    public void put(String key, Double value) {
        valuesBucket.putDouble(key, value);
    }

    public void put(String key, Boolean value) {
        valuesBucket.putBoolean(key, value);
    }

    public void put(String key, byte[] value) {
        valuesBucket.putByteArray(key, value);
    }

    public ValuesBucket getValuesBucket() {
        return valuesBucket;
    }
}
